package spring.boot.redis.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import spring.boot.redis.service.RedissonService;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;


@Controller
@RequestMapping(value= "/redisson")
public class IndexController {

    @Resource
    RedissonService redissonService;

    @RequestMapping(value="/test")
    @ResponseBody
    public String test(HttpServletRequest request){
     /*   redissonService.set("test-user","liuli");
        System.out.println(redissonService.get("test-user"));*/



        return "ok";
    }}

